Hi,
we use Slack extensions on more than a hundred Pagerduty services and up to now were managing them using the method described here:
/forum/t/how-to-pass-config-data-when-creating-an-extension/851/2
We used this method through the Terraform Pagerduty provider as described here: https://github.com/terraform-providers/terraform-provider-pagerduty/issues/94#issuecomment-449075707
The issue is this does not seem to be working any more since yesterday as the token is now redacted from the REST API responses:
From the terraform point of view, this triggers permanent diff:
# terraform plan
# module.pagerduty.pagerduty_extension.slack_nbh["MyService103"] will be updated in-place
~ resource "pagerduty_extension" "slack_nbh" {
~ config = jsonencode(
~ {
~ access_token = "redacted" -> "xoxp-******-******-******-******"
bot = {
bot_user_id = "U******1"
}
enterprise_id = null
incoming_webhook = {
channel = "#fr-******-pagerduty"
channel_id = "C******X"
configuration_url = "https://******.slack.com/services/******"
url = "https://hooks.slack.com/services/******/******/******"
}
notify_types = {
acknowledge = false
annotate = true
assignments = false
escalate = true
resolve = false
trigger = true
}
ok = true
referer = "https://******.pagerduty.com/services/******/integrations"
scope = "identify,bot,commands,incoming-webhook,channels:read,groups:read,im:read,team:read,users:read,users:read.email,channels:write,chat:write:user,chat:write:bot,groups:write"
team_id = "T******Y"
team_name = "******"
urgency = {
high = true
low = true
}
user_id = "U******6"
}
)
extension_objects = [
"P******7",
]
extension_schema = "P******R"
id = "P******P"
name = "MyService103 - #fr-******-pagerduty in ******.slack.com"
}
Plan: 0 to add, 103 to change, 0 to destroy.
Sadly, all our Slack V2 extensions that shared a previously valid access_token
stopped working all at once and we cannot re-authorize them through the API.
Is there any other known method to retrieve an access token?